vmx: merge MSR management routines
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 23 Jan 2015 16:53:01 +0000 (17:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Jan 2015 16:53:01 +0000 (17:53 +0100)
commitf0195f9f096cdf2dc233d4f34f96c19b44a15252
treef0bb3d68d0324dbd6e7ba02e9bfeec3307018126
parent2c85cae312943263a00a69b038acc7454e2804b6
vmx: merge MSR management routines

vmx_add_host_load_msr() and vmx_add_guest_msr() share fair amount of code. Merge
them to simplify code maintenance.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Tested-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/include/asm-x86/hvm/vmx/vmcs.h